
// 返回上一页
export const onClickLeft = () => history.back();

// 用户表单验证
// export const rules = {
//     nickname:[{ validator: auth_nickname}],
//     password:[{ validator: auth_password}],
//     password_and:[{ validator: auth_password_and}],
//     mobile:[{ validator: auth_mobile}],
//     sms_code:[{ validator: auth_sms_code}],
//   };

// 处理表单格式
export const datetime = (val) => {
    if(!val){
      return
    }
    let myDate = new Date(val)
    return myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate() + " " + myDate.getHours() + ":" + myDate.getMinutes() + ":" + myDate.getSeconds()
  };


  
  
  